package io.framework.modules.sys.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.framework.common.validator.group.DefaultGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;


/**
 * 通讯录
 *
 * @author Gujq email
 * @since 1.0.0 2020-04-14
 */
@Data
@ApiModel(value = "通讯录")
public class SysAddressListDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "ID")
	private Long id;

	@ApiModelProperty(value = "姓名")
	@NotBlank(message="{sysuser.realname.require}", groups = DefaultGroup.class)
	private String username;

	@ApiModelProperty(value = "联系电话")
	@NotBlank(message="{sysuser.realname.require}", groups = DefaultGroup.class)
	private String linkPhone;

	@ApiModelProperty(value = "手机号码")
	@NotBlank(message="{sysuser.realname.require}", groups = DefaultGroup.class)
	private String moublePhone;

	@ApiModelProperty(value = "邮箱")
	private String mail;

	@ApiModelProperty(value = "微信号")
	private String wechatCode;

	@ApiModelProperty(value = "QQ号")
	private String qqCode;

	@ApiModelProperty(value = "所在单位")
	private String company;

	@ApiModelProperty(value = "办公电话")
	private String telephone;


	@ApiModelProperty(value = "创建者")
	@JsonProperty(access = JsonProperty.Access.READ_ONLY)
	private Long creator;

	@ApiModelProperty(value = "创建时间")
	@JsonProperty(access = JsonProperty.Access.READ_ONLY)
	private Date createDate;

	@ApiModelProperty(value = "修改时间")
	@JsonProperty(access = JsonProperty.Access.READ_ONLY)
	private Date updateDate;


}